﻿@{
    var login = ViewBag.login as S_LoginInfo;
}
<meta name="renderer" content="webkit">
<link href="@Url.Content("http://static.tops001.com/web/oa/content/css/base.css")" rel="stylesheet" />
<link href="@Url.Content("http://static.tops001.com/web/oa/content/css/login.css")" rel="stylesheet" type="text/css" />
<style type="text/css">
    .fullBg {
        position: fixed;
        top: 0;
        left: 0;
        overflow: hidden;
        z-index: -1;
    }
</style>




<form id="user">
    <img src="@Url.Content("~/Content/images/login_oa.png")" alt="" id="background" />
    <div class="login">
        <div class="login_logo">
            @*<a href="http://www.tops001.com/" target="_blank"><img src="@Url.Content("~/Content/images/login_logo.png")" width="85" height="55"></a>*@
        </div>
        @*<a href="http://www.tops001.com/" class="login_about">了解销冠系统</a>*@
        <div class="login_main" style="margin-bottom:50px">
            <div class="login_tip02"><img src="@Url.Content("~/Content/images/login_tip02.png")" width="195" height="203"></div>
            <div class="login_tab02">
                <div class="login_inpbg">
                    <div class="login_inp02"><input name="userName" id="userName" type="text" maxlength="30" class="inp3"  onkeypress="onenter(event)" style="border:none;" placeholder="请输入您的账号" /></div>
                    <div class="login_inp02" style="margin-bottom:15px;"><input name="passWord" maxlength="30" id="passWord" type="password" class="inp4" onkeypress="onenter(event)" style="border:none;"  placeholder="请输入密码"/></div>
                </div>
                <div class="login_line" style="padding:8px 0;width:350px;">
                    @*<a href="@Url.Action("PasswordAppeal","Home")" class="fl" style="color:#535353;font-size:14px;">忘记密码？</a>
                        <a href="#" class="fr apply02" style="color:#535353;font-size:14px;">申请试用</a>*@
                </div>
                <div class="login_btn">
                                          <input name="btnlogin" type="button" onclick="loginup()" value="登 录" style="border-radius:5px;width:350px;">
                                          <input name="waiting" type="button" value="正在登录，请稍后..." style="border-radius:5px;width:350px;display:none;">
                                          <input type="hidden" value="0" id="hdissuccess" />
                                      </div>
                @*<div class="login_line"><a href="@Url.Action("PasswordAppeal","Home")" class="fl">忘记密码？</a><a href="#" class="fr apply">申请试用</a></div>*@

            </div>
        </div>
        <div class="login_foot03">
            <a href="http://www.tops001.com/contact_us.htm">联系我们</a> &nbsp;|&nbsp; <a href="http://www.tops001.com/privacy.htm">用户隐私</a> &nbsp;|&nbsp; <a href="http://www.tops001.com/privacy.htm">用户协议</a>
        </div>
        <div class="login_foot02"> 2013-2015 KAKAO.ALL RIGHTS RESERVED  卡考网络有限公司版权所有-浙ICP备13033577号-1</div>
    </div>
</form>

<script type="text/javascript">
    $(function () {
        fullbgstar();
        $("#userName").focus();
    });
    setTimeout("fullbgstar()", 100);
    function fullbgstar() {
        $("#background").fullBg();
    }
    function onenter(e) {
        var ev = document.all ? window.event : e;
        if (ev.keyCode == 13) {
            loginup()
        }
       
    }
    function loginup() {
        if ($("#hdissuccess").val() == "1")
        {
            return;
        }

        var name = $("input[name=userName]").val();
        var pwd = $("input[name=passWord]").val();
        if (name == "" || name == "请输入您的账号") {
            $.messager.showMsgErr("请输入您的账号", "userName");            
            return;
        }
        if (pwd == "" || pwd == "请输入密码") {
            $.messager.showMsgErr("请输入密码", "passWord");
            return;
        }
        $("#passWord").blur();
        $("#userName").blur();

        $("#user").form("submit", {
            url: "@Url.Action("postLogin")",
            onSubmit: function () {
                return true;
            },
            success: function (res) {
                $.msgAlert(res, function (jsobj) {
                    $("input[name='btnlogin']").hide();
                    $("input[name='waiting']").show();
                    $("#hdissuccess").val("1");
                    location = jsobj.BackUrl;
                });
            }
        });
    }
</script>

